import {
  defineConfig,
  presetUno,
  presetAttributify,
  presetTypography,
  presetIcons,
  presetWebFonts,
  presetTagify,
  presetWind,
  presetMini,
} from 'unocss'

export default defineConfig({
  presets: [
    presetUno(),
    presetAttributify(),
    presetTypography(),
    presetIcons({
      collections: {
        ri: () => import('@iconify-json/ri').then(i => i.icons),
      },
      prefix: 'i-',
      scale: 1.2,
      warn: true,
      extraProperties: {
        display: 'inline-block',
        'vertical-align': 'middle',
      },
    }),
    presetWebFonts(),
    presetTagify(),
    presetWind(),
    presetMini(),
  ],
  shortcuts: {
    // 自定义快捷方式
  },
  rules: [
    // 自定义规则
  ],
  theme: {
    colors: {
      // 自定义颜色
    },
  },
})
